let container = document.querySelector('.container')
let sub = document.querySelector('.submit')
let id = getQueryString('productid')
fetch('http://chst.vip:1234/api/getmoneyctrlproduct?productid=' + id)
.then(body=>body.json())
.then(res =>{
    console.log(res)
    let r=res.result[0];
    let regExp = /(?<=imgurl=)[^'"]*/;
    let url = r.productImg2.match(regExp);
    let el =`<div class="title">${r.productName}</div>
    <div class="other"><b>${r.productFrom} |${r.productTime} </b>&nbsp;&nbsp;&nbsp;&nbsp;<span>${r.productTips}</span></div>
    <div class="describe"><img src=${url[0]} alt="" />${r.productInfo2}${r.productInfo1}</div>
    
    <div class="city"><img src=${url[0]} alt="" />
    ${r.productCity}
    </div>
    <div class="content"></div>`
    let se =`${r.productComment}`
    container.innerHTML = el;
    sub.innerHTML=se;
})